<template>
  <div class="box">
    <input type="text" :value="value" @input="$emit('input', $event.target.value)">
    <span>{{ value }}</span>
  </div>
</template>

<script>
export default {
  name: 'Event',
  props: {
    value: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      msg: '测试'
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  background-color: #8df;
  padding: 50px;
}
</style>
